package c.e.a.b.e.c;

import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Objects;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public final class g4 implements x7 {
    public final e4 a;

    public g4(e4 e4Var) {
        Charset charset = w4.a;
        this.a = e4Var;
    }

    public final void a(int i, double d) throws IOException {
        e4 e4Var = this.a;
        Objects.requireNonNull(e4Var);
        e4Var.z(i, Double.doubleToRawLongBits(d));
    }

    public final void b(int i, float f) throws IOException {
        e4 e4Var = this.a;
        Objects.requireNonNull(e4Var);
        e4Var.G(i, Float.floatToRawIntBits(f));
    }

    public final void c(int i, Object obj) throws IOException {
        if (obj instanceof t3) {
            this.a.t(i, (t3) obj);
        } else {
            this.a.i(i, (e6) obj);
        }
    }

    public final void d(int i, Object obj, s6 s6Var) throws IOException {
        this.a.j(i, (e6) obj, s6Var);
    }

    public final void e(int i, Object obj, s6 s6Var) throws IOException {
        e4 e4Var = this.a;
        e6 e6Var = (e6) obj;
        e4Var.f(i, 3);
        s6Var.f(e6Var, e4Var.a);
        e4Var.f(i, 4);
    }

    public final void f(int i, long j) throws IOException {
        this.a.g(i, e4.R(j));
    }

    public final void g(int i, int i2) throws IOException {
        this.a.y(i, e4.V(i2));
    }
}
